<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Index</title>
    <style>
        input{
            width: 200px;
            height: 40px;
            border-radius: 10px;
            background: transparent;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <h1>首页</h1>
    <form action="/auth/quit" method="get">
        <h1>{{ id }}.{{ name }}</h1>
        <input type="submit" value="退出登录" />
    </form>

    <script>
        function quit() {
            console.log('quit')
            let xhr = new XMLHttpRequest();
            xhr.open("GET","http://www.5xclass.cn/auth/quit");
            xhr.send();
            console.log(xhr.response)
        }
    </script>
</body>
</html>